import Vue from 'vue'
import Element from 'element-ui'
import VueI18n from 'vue-i18n'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
//导入自己的语言包
import chinese from './chinese'
import english from './english'

Vue.use(VueI18n)
const messages = {
    en: {
        ...english,
        ...enLocale,
    },
    zh: {
        ...chinese,
        ...zhLocale
    }

}

const i18n = new VueI18n({
    locale: 'zh',
    messages,
})
export default i18n


